package com.ghxxzx.dagl.service;

import com.ghxxzx.dagl.entity.Fg;
import com.ghxxzx.dagl.entity.User;
import com.ghxxzx.dagl.vo.PageQuery;
import com.ghxxzx.dagl.vo.ResultEntity;
import io.swagger.annotations.ApiParam;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface FgService {
    ResultEntity addFg(MultipartFile multipartFile, User user, Fg fg);

    ResultEntity queryAll();

    ResultEntity deleteById(Integer id);
    void downloadFg(String name, HttpServletRequest request, HttpServletResponse response);

    ResultEntity previewFg(String name,HttpServletRequest request, HttpServletResponse response);

    ResultEntity querykeyword(String keyword);

}
